package com.baijiayun.liveuibase.widgets.courseware.models;

import com.baijiayun.livecore.models.LPDocTranslateProgressModel;
import com.baijiayun.liveuibase.base.BaseUIConstant.FileUploadState;
import com.baijiayun.liveuibase.widgets.courseware.BaseCourseWareFileViewHolder;

public class UploadDocModel {
    String path;
    boolean isHomeWork;
    boolean isCloudFile;
    boolean isAnim;
    /**
     * 转码中时初始化，用于点击取消转码时获取相关数据
     */
    String fileId;
    BaseCourseWareFileViewHolder itemView;
    FileUploadState nowState = FileUploadState.Uploading;
    LPDocTranslateProgressModel errorModel;

    public UploadDocModel(String path, boolean isAnim) {
        this(path, false, isAnim);
    }

    public UploadDocModel(String path, boolean isHomeWork, boolean isAnim) {
        this(path, isHomeWork, isAnim, false);
    }

    public UploadDocModel(String path, boolean isHomeWork, boolean isAnim, boolean isCloudFile) {
        this.path = path;
        this.isHomeWork = isHomeWork;
        this.isAnim = isAnim;
        this.isCloudFile = isCloudFile;
    }

    public String getPath() {
        return path;
    }

    public boolean isHomeWork() {
        return isHomeWork;
    }

    public boolean isCloudFile() {
        return isCloudFile;
    }

    public boolean isAnim() {
        return isAnim;
    }

    public void setItemView(BaseCourseWareFileViewHolder itemView) {
        this.itemView = itemView;
    }

    public BaseCourseWareFileViewHolder getItemView() {
        return itemView;
    }

    public void setNowState(FileUploadState nowState) {
        this.nowState = nowState;
    }

    public FileUploadState getNowState() {
        return nowState;
    }

    public void setErrorModel(LPDocTranslateProgressModel errorModel) {
        this.errorModel = errorModel;
    }

    public LPDocTranslateProgressModel getErrorModel() {
        return errorModel;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    // region 作业的额外数据
    String homeworkId;

    public void setHomeworkId(String homeworkId) {
        this.homeworkId = homeworkId;
    }

    public String getHomeworkId() {
        return homeworkId;
    }
    // endregion
}
